using System;
using ProtoBuf;

namespace GeoAzure.Core.Tests
{
    [Serializable]
    [ProtoContract]
    public class Bounded : IBounded
    {
        [ProtoMember(3)]
        private readonly GeoRectangle _bounds;
        [ProtoMember(1)]
        private readonly string PartitionKey = System.Guid.NewGuid().ToString();
        [ProtoMember(2)]
        private readonly string RowKey = System.Guid.NewGuid().ToString();

        public Bounded(GeoRectangle bounds)
        {
            _bounds = bounds;
        }

        private Bounded()
        {}

        public GeoRectangle Bounds
        {
            get { return _bounds; }
        }
    }
}